from django.urls import re_path
from . import views

urlpatterns = [
    re_path(r'^channels/$',views.ChannelView.as_view()),
    re_path(r'^article/(?P<id>\d+|-1)/channel/$',views.ArticlelView.as_view()),
    re_path(r'^article/(?P<id>\d+)/$',views.ArticledetailView.as_view()),
    re_path(r'^article/(?P<id>\d+)/collect/$',views.ClollectarticleView.as_view()),
    re_path(r'^article/$',views.AddArticleView.as_view()),
    re_path(r'^article/(?P<id>\d+)/publish_comment/$',views.ArticlecommentView.as_view()),
    re_path(r'^articles/search/$',views.ArticleSearchView.as_view()),
]